package com.info33.platform.doc.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.info33.platform.common.mvc.vo.Result;
import com.info33.platform.doc.dto.DocFileDirectoryDTO;
import com.info33.platform.doc.entity.DocFileDirectory;
import com.info33.platform.doc.vo.DocFileDirectoryVO;
import com.info33.platform.system.vo.SysUserVO;

/**
 * @author admin
 */
public interface DocFileDirectoryService extends IService<DocFileDirectory> {

	/**
	 * 获取目录树
	 * @param currentUser
	 * @param type
	 * @return
	 */
	List<DocFileDirectoryVO> getDirectoryTree(SysUserVO currentUser, String type);

	/**
	 * 新增目录
	 * @param sysUserVO 
	 * @param docFileDirectoryDTO
	 * @return
	 */
	Result<?> saveFileDirectory(SysUserVO sysUserVO, DocFileDirectoryDTO docFileDirectoryDTO);

	/**
	 * 编辑目录
	 * @param docFileDirectoryDTO
	 * @return
	 */
	Result<?> editFileDirectory(SysUserVO sysUserVO, DocFileDirectoryDTO docFileDirectoryDTO);

	/**
	 * 删除目录
	 * @param currentUser
	 * @param id
	 * @return
	 */
	Result<?> removeFileDirectory(SysUserVO currentUser, Long id);
	
	/**
	 * 获取父级目录
	 * @param id
	 * @param fileDirectoryList
	 * @return
	 */
	List<String> queryParentDirectory(Long id, List<DocFileDirectory> fileDirectoryList);


}